import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ClipperOvalPath extends CustomClipper<Rect> {

  double previewSize;
  double top;
  ClipperOvalPath(this.previewSize,this.top);
  @override
  Rect getClip(Size size) {
    return Rect.fromLTWH((size.width-previewSize)/2, 0, previewSize, previewSize);
  }

  @override
  bool shouldReclip(CustomClipper<Rect> oldClipper) {
    return false;
  }
}
